<!--
 * @Author: daidai
 * @Date: 2022-03-01 14:13:04
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-09-27 15:04:49
 * @FilePath: \web-pc\src\pages\big-screen\view\indexs\right-top.vue
-->
<template>
  <div class="bed_content">
    <div class="title"></div>
    <div class="bed_list">
      <div class="bed_item" v-for="i in 9" :key="i">
        <div class="bed_item_header">
          <div><img src="../../assets/img/man-logo.png" alt="" /></div>
          <div class="bed_item_detail">
            <div class="detail_row">
              <span>丁*</span><span>79岁</span><span>182*****534</span>
            </div>
            <div>地址：******</div>
          </div>
        </div>
        <div class="bed_item_alarm">最近告警：暂无数据</div>
        <div class="bed_item_list">
          <div class="listItem">
            <div><img src="../../assets/img/logo/hit.png" alt="" />心率</div>
            <div>0</div>
          </div>
          <div class="listItem">
            <div><img src="../../assets/img/logo/breath.png" alt="" />呼吸</div>
            <div>0</div>
          </div>
          <div class="listItem">
            <div><img src="../../assets/img/logo/status.png" alt="" />状态</div>
            <div>暂无设备</div>
          </div>
        </div>
        <div class="bed_item_logo">
          <div><img src="../../assets/img/logo/logo1.png" alt="" />网关</div>
          <div><img src="../../assets/img/logo/logo2.png" alt="" />网关</div>
          <div><img src="../../assets/img/logo/logo3.png" alt="" />网关</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { currentGET } from "api/modules";
import { graphic } from "echarts";
export default {
  data() {
    return {
      option: {},
      pageflag: false,
      timer: null,
    };
  },
  created() {},

  mounted() {
    this.getData();
  },
  beforeDestroy() {
    this.clearData();
  },
  methods: {
    clearData() {
      if (this.timer) {
        clearInterval(this.timer);
        this.timer = null;
      }
    },
    getData() {},
  },
};
</script>
<style lang="scss" scoped>
.bed_content {
  height: 100%;
}
.bed_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  .bed_item {
    width: 420px;
    height: 250px;
    // background-color: aliceblue;
    margin: 10px 0;
    padding: 10px;
    border: 1px #467bed solid;
    border-radius: 3px;

    .bed_item_header {
      display: flex;
      align-items: center;
      img {
        width: 80px;
        height: 80px;
        margin-right: 20px;
      }
    }
    .bed_item_detail {
      width: 100%;
      .detail_row {
        display: flex;
        justify-content: space-between;
        margin: 12px 0;
      }
    }

    .bed_item_alarm {
      width: 100%;
      height: 30px;
      margin-top: 10px;
      background-color: #7a7a7a57;
      align-items: center;
      font-size: 18px;
      line-height: 26px;
      border-radius: 2px;
    }

    .bed_item_list {
      display: flex;
      justify-content: space-between;
      margin: 10px 0;
      .listItem {
        width: 30%;
        height: 60px;
        background-color: #467bed44;
        border-radius: 2px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        div {
          display: flex;
          justify-content: center;
          align-items: center;
          margin: 5px 0;
        }
        img {
          width: 20px;
          height: 20px;
          margin-right: 3px;
        }
      }
    }

    .bed_item_logo {
      display: flex;
      flex-wrap: wrap;
      div {
        display: flex;
        align-items: center;
        margin-right: 10px;
        img {
          width: 20px;
          height: 20px;
          margin-right: 3px;
        }
      }
    }
  }
}
</style>
